package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Friend;

import java.util.List;

public interface FriendApi {
    //互相添加好友
    void save(Long userId, Long friendId);

    //查询好友
    List<Friend> findByUserId(Long userId, Integer page, Integer pagesize);


    List<Friend> findByUserIds(Long userId);

    //删除好友
    void delete(Long userId, Long friendId);
}
